home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 40 / Issue 40.iso / pc / PCSoftware / NoteTab Pro 2.83 / setup.exe / Main / D: / Prod / SetUp / NoteTab / Libraries / HTML-ar.clb < prev    next >
Encoding:
Text File  |  2000-10-26  |  14.8 KB  |  224 lines

  1. = V5 MultiLine AutoReplace TabWidth=30
  2.  
  3. H=";About this library"
  4. This is an "auto-replace" library. When it is opened in the Clipbook window (this window may be hidden), Auto-replace mode is automatically enabled. It provides a feature similar to AutoCorrect available in WinWord and other word processors. As you edit your document, NoteTab checks the word preceding the cursor whenever you press a Clip activation key:
  5.  
  6.      TAB SPACE RETURN ! " , . : ; = > ? ] }
  7.  
  8. If this word matches a Clip name in the list (case insensitive), it is automatically replaced according to the Clip instructions.
  9.  
  10. For example, if you type the HTML tag "<b>" in your document, NoteTab will automatically complete it with the closing tag placed after the cursor: "<B>¶</B>".
  11.  
  12. This library serves as a demonstration of the varied tasks that can be performed by the Editor Clipbook. You are free to customize it any way you like.
  13.  
  14. H="<a"
  15. ^!Clip "◊^?[Link to create==_Link|Link with image|Link to bookmark|Bookmark|MailTo]"
  16.  
  17. H="<address"
  18. ^!InsertHtml <ADDRESS>^P^&^P</ADDRESS>^P
  19.  
  20. H="<applet"
  21. ^!SetWizardLabel "Enter values for tag attributes"
  22. ^!InsertWizardHtml <APPLET CODE="^?{&URL of Java code}" ARCHIVE="^?{Archive &file}" ALIGN="^?{&Align=bottom|left|middle|right|top}" WIDTH="^?{Applet &width}" HEIGHT="^?{Applet &height}" ALT="^?{Alternative text &description}">^P  ^&^P</APPLET>^P
  23.  
  24. H="<b"
  25. ^!InsertHtml <B>^&</B>
  26.  
  27. H="<base"
  28. ^!SetWizardLabel "Enter values for tag attributes"
  29. ^!InsertWizardHtml <BASE HREF="^?[Base URL]" TARGET="^?[Target (optional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top]">^P^&
  30.  
  31. H="<basefont"
  32. ^!SetWizardLabel "Enter values for tag attributes"
  33. ^!InsertWizardHtml <BASEFONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^$GetClipText("◊Basic Color Codes")$}">^P^&
  34.  
  35. H="<big"
  36. ^!InsertHtml <BIG>^&</BIG>
  37.  
  38. H="<blockquote"
  39. ^!InsertHtml <BLOCKQUOTE>^P^&^P</BLOCKQUOTE>^P
  40.  
  41. H="<body"
  42. ^!SetWizardLabel "Enter values for tag attributes"
  43. ^!InsertWizardHtml <BODY BGCOLOR="^?{&Background Color=^$StrReplace("white^=#FFFFFF";"_white^=#FFFFFF";"^$GetClipText("◊Color Codes")$";True;False)$}" TEXT="^?{&Text Color=^$StrReplace("black^=#000000";"_black^=#000000";"^$GetClipText("◊Basic Color Codes")$";True;False)$}" LINK="^?{&Link Color=^$StrReplace("blue^=#0000FF";"_blue^=#0000FF";"^$GetClipText("◊Basic Color Codes")$";True;False)$}" VLINK="^?{&Visited Link Color=^$StrReplace("purple^=#800080";"_purple^=#800080";"^$GetClipText("◊Basic Color Codes")$";True;False)$}" ALINK="^?{&Active Link Color=^$StrReplace("red^=#FF0000";"_red^=#FF0000";"^$GetClipText("◊Basic Color Codes")$";True;False)$}" BACKGROUND="^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Background &file name}">^P^P^&^P^P</BODY>^P
  44.  
  45. H="<caption"
  46. ^!InsertHtml <CAPTION>^&</CAPTION>
  47.  
  48. H="<center"
  49. ^!InsertHtml <CENTER>^&</CENTER>
  50.  
  51. H="<cite"
  52. ^!InsertHtml <CITE>^&</CITE>
  53.  
  54. H="<code"
  55. ^!InsertHtml <CODE>^P^&^P</CODE>^P
  56.  
  57. H="<dl"
  58. ^!InsertHtml <DL>^P^$StrFill("  <DT></DT><DD></DD>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$</DL>^P^&
  59.  
  60. H="<em"
  61. ^!InsertHtml <EM>^&</EM>
  62.  
  63. H="<embed"
  64. ^!InsertHtml <EMBED SRC="^&">
  65.  
  66. H="<font"
  67. ^!SetWizardLabel "Enter values for tag attributes"
  68. ^!InsertWizardHtml <FONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^$GetClipText("◊Basic Color Codes")$}">^&</FONT>
  69.  
  70. H="<form"
  71. ^!SetWizardLabel "Enter values for tag attributes"
  72. ^!InsertWizardHtml <FORM ACTION="^?{&Action URL}" METHOD="^?{&Method=get|post}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^P  ^&^P</FORM>^P
  73.  
  74. H="<h1"
  75. ^!InsertHtml <H1>^&</H1>
  76.  
  77. H="<h2"
  78. ^!InsertHtml <H2>^&</H2>
  79.  
  80. H="<h3"
  81. ^!InsertHtml <H3>^&</H3>
  82.  
  83. H="<h4"
  84. ^!InsertHtml <H4>^&</H4>
  85.  
  86. H="<html"
  87. ^!InsertHtml ^?[(T=C)Document Type==_[None]^=|XHTML 1.0 Strict^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">|XHTML 1.0 Transitional^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">|XHTML 1.0 Frameset^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">|HTML 4.01 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">|HTML 4.01 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">|HTML 4.01 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">|HTML 4 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">|HTML 4 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">|HTML 4 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">|HTML 3.2 (W3C)^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">|HTML (IE3)^=<!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">|HTML 2 (Netscape)^=<!DOCTYPE HTML PUBLIC "-//WebTechs//DTD Mozilla HTML 2.0//EN">|HTML 2 (IETF)^=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">|HTML 1 (IETF)^=<!DOCTYPE HTML PUBLIC  "-//IETF//DTD HTML Level 1//EN">]^P<HTML>^P<HEAD>^P<TITLE>^?[&Web page title]</TITLE>^P^P<LINK REV="made" HREF="mailto:^?[Your &E-mail address]">^P<META NAME="author" CONTENT="^?[Your &name]">^P<META NAME="generator" CONTENT="^$GetProgName$ ^$GetProgVersion$">^P<META NAME="keywords" CONTENT="^?[Web page &keywords]">^P<META NAME="description" CONTENT="^?[Web page &description]">^P^&^P</HEAD>^P
  88.  
  89. H="<i"
  90. ^!InsertHtml <I>^&</I>
  91.  
  92. H="<img"
  93. ^!InsertHtml <IMG ^?[(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image file name] BORDER="0" ALT="^&">
  94.  
  95. H="<input"
  96. ^!InsertHtml <INPUT TYPE="^?[Input &type=Button|Checkbox|File|Hidden|Image|Password|Radio|Reset|Submit|_Text]" NAME="^?[Input &name]" VALUE="^?[&Value=^&]">^&</INPUT>
  97.  
  98. H="<kbd"
  99. ^!InsertHtml <KBD>^&</KBD>
  100.  
  101. H="<li"
  102. ^!InsertHtml <LI>^&</LI>
  103.  
  104. H="<link"
  105. ^!SetWizardLabel "Enter values for tag attributes"
  106. ^!InsertWizardHtml <LINK HREF="^?{&URL of linked resource}" REL="^?{&Relationship with linked document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|next|prev|section|start|stylesheet|subsection}" REV="^?{&Relationship of current document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|made|next|prev|section|start|stylesheet|subsection}">^P^&
  107.  
  108. H="<meta"
  109. ^!SetWizardLabel "Enter values for tag attributes"
  110. ^!InsertWizardHtml <META HTTP-EQUIV="^?{&HTTP header string=content-type|expires|page-enter|pics-label|pragma|refresh}" NAME="^?{&Name of meta-information=author|copyright|date|description|generator|identifier|keywords|revisit-after|robots}" CONTENT="^?{&Content}">^P^&
  111.  
  112. H="<ol"
  113. ^!InsertHtml <OL>^P^$RemoveTokens(^$StrFill("  <LI></LI>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$)$</OL>^P^&
  114.  
  115. H="<option"
  116. ^!SetWizardLabel "Enter values for tag attributes"
  117. ^!InsertWizardHtml <OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}></OPTION>^P^&
  118.  
  119. H="<p"
  120. ^!InsertHtml <P>^&</P>
  121.  
  122. H="<pre"
  123. ^!InsertHtml <PRE>^P^&^P</PRE>^P
  124.  
  125. H="<select"
  126. ^!InsertWizardHtml <SELECT NAME="^&">^P^$StrFill("  <OPTION></OPTION>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$</SELECT>^P
  127.  
  128. H="<small"
  129. ^!InsertHtml <SMALL>^&</SMALL>
  130.  
  131. H="<strike"
  132. ^!InsertHtml <STRIKE>^&</STRIKE>
  133.  
  134. H="<strong"
  135. ^!InsertHtml <STRONG>^&</STRONG>
  136.  
  137. H="<style"
  138. ^!SetWizardLabel "Enter values for tag attributes"
  139. ^!InsertWizardHtml <STYLE TYPE="^?{&Mime type=text/css}" LANG="^?{&Language}">^P<!--^P  ^&^P-->^P</STYLE>^P^&
  140.  
  141. H="<sub"
  142. ^!InsertHtml <SUB>^&</SUB>
  143.  
  144. H="<sup"
  145. ^!InsertHtml <SUP>^&</SUP>
  146.  
  147. H="<table"
  148. ^!SetWizardLabel "Enter values for tag attributes"
  149. ^!InsertWizardHtml <TABLE ALIGN="^?{&Align (transitional)=center|left|right}" BGCOLOR="^?{Background &color (transitional)=^$GetClipText("◊Color Codes")$}" BORDER="^?{&Border=_0|1|2|3|4|5|6|7|8}" CELLSPACING="^?{Cell &spacing=0}" CELLPADDING="^?{Cell &padding=0}" WIDTH="^?{&Width=100%}">^P  ^&^P</TABLE>^P
  150.  
  151. H="<td"
  152. ^!SetWizardLabel "Enter values for tag attributes"
  153. ^!InsertWizardHtml <TD ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^$GetClipText("◊Color Codes")$}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TD>
  154.  
  155. H="<th"
  156. ^!SetWizardLabel "Enter values for tag attributes"
  157. ^!InsertWizardHtml <TH ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^$GetClipText("◊Color Codes")$}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TH>
  158.  
  159. H="<title"
  160. ^!InsertHtml <TITLE>^&</TITLE>
  161.  
  162. H="<tr"
  163. ^!SetWizardLabel "Enter values for tag attributes"
  164. ^!InsertWizardHtml <TR ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" BGCOLOR="^?{&Background color (transitional)=^$GetClipText("◊Color Codes")$}">^&</TR>
  165.  
  166. H="<u"
  167. ^!InsertHtml <U>^&</U>
  168.  
  169. H="<ul"
  170. ^!InsertHtml <UL>^P^$RemoveTokens(^$StrFill("  <LI></LI>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$)$</UL>^P^&
  171.  
  172. H="<var"
  173. ^!InsertHtml <VAR>^&</VAR>
  174.  
  175. H="_◊Basic Color Codes"
  176. aqua^=#00FFFF|black^=#000000|blue^=#0000FF|fuchsia^=#FF00FF|gray^=#808080|green^=#008000|lime^=#00FF00|maroon^=#800000|navy^=#000080|olive^=#808000|purple^=#800080|red^=#FF0000|silver^=#C0C0C0|teal^=#008080|white^=#FFFFFF|yellow^=#FFFF00
  177.  
  178. H="_◊Bookmark"
  179. ^!InsertHtml <A NAME="^?[Bookmark label=]">^&</A>
  180.  
  181. H="_◊Color Codes"
  182. alice blue^=#F0F8FF|antique white^=#FAEBD7|aqua^=#00FFFF|aqua marine^=#7FFFD4|azure^=#F0FFFF|beige^=#F5F5DC|bisque^=#FFE4C4|black^=#000000|blanched almond^=#FFEBCD|blue^=#0000FF|blue violet^=#8A2BE2|brown^=#A52A2A|burly wood^=#DEB887|cadet blue^=#5F9EA0|chartreuse^=#7FFF00|chocolate^=#D2691E|coral^=#FF7F50|corn flower blue^=#6495ED|corn silk^=#FFF8DC|crimson^=#DC143C|cyan^=#00FFFF|dark blue^=#00008B|dark cyan^=#008B8B|dark golden rod^=#B8860B|dark gray^=#A9A9A9|dark green^=#006400|dark khaki^=#BDB76B|dark magenta^=#8B008B|dark olive green^=#556B2F|dark orange^=#FF8C00|dark orchid^=#9932CC|dark red^=#8B0000|dark salmon^=#E9967A|dark sea green^=#8FBC8F|dark slate blue^=#483D8B|dark slate gray^=#2F4F4F|dark turquoise^=#00CED1|dark violet^=#9400D3|deep pink^=#FF1493|deep sky blue^=#00BFFF|dim gray^=#696969|dodger blue^=#1E90FF|fire brick^=#B22222|floral white^=#FFFAF0|forest green^=#228B22|fuchsia^=#FF00FF|gainsboro^=#DCDCDC|ghost white^=#F8F8FF|gold^=#FFD700|golden rod^=#DAA520|gray^=#808080|green^=#008000|green yellow^=#ADFF2F|honey dew^=#F0FFF0|hot pink^=#FF69B4|indian red^=#CD5C5C|indigo^=#4B0082|ivory^=#FFFFF0|khaki^=#F0E68C|lavender^=#E6E6FA|lavender blush^=#FFF0F5|lawn green^=#7CFC00|lemon chiffon^=#FFFACD|light blue^=#ADD8E6|light coral^=#F08080|light cyan^=#E0FFFF|light golden rod yellow^=#FAFAD2|light green^=#90EE90|light grey^=#D3D3D3|light pink^=#FFB6C1|light salmon^=#FFA07A|light sea green^=#20B2AA|light sky blue^=#87CEFA|light slate gray^=#778899|light steel blue^=#B0C4DE|light yellow^=#FFFFE0|lime^=#00FF00|lime green^=#32CD32|linen^=#FAF0E6|magenta^=#FF00FF|maroon^=#800000|medium aqua marine^=#66CDAA|medium blue^=#0000CD|medium orchid^=#BA55D3|medium purple^=#9370DB|medium sea green^=#3CB371|medium slate blue^=#7B68EE|medium spring green^=#00FA9A|medium turquoise^=#48D1CC|medium violet red^=#C71585|midnight blue^=#191970|mint cream^=#F5FFFA|misty rose^=#FFE4E1|moccasin^=#FFE4B5|navajo white^=#FFDEAD|navy^=#000080|old lace^=#FDF5E6|olive^=#808000|olive drab^=#6B8E23|orange^=#FFA500|orange red^=#FF4500|orchid^=#DA70D6|pale golden rod^=#EEE8AA|pale green^=#98FB98|pale turquoise^=#AFEEEE|pale violet red^=#DB7093|papaya whip^=#FFEFD5|peach puff^=#FFDAB9|peru^=#CD853F|pink^=#FFC0CB|plum^=#DDA0DD|powder blue^=#B0E0E6|purple^=#800080|red^=#FF0000|rosy brown^=#BC8F8F|royal blue^=#4169E1|saddle brown^=#8B4513|salmon^=#FA8072|sandy brown^=#F4A460|sea green^=#2E8B57|sea shell^=#FFF5EE|sienna^=#A0522D|silver^=#C0C0C0|sky blue^=#87CEEB|slate blue^=#6A5ACD|slate gray^=#708090|snow^=#FFFAFA|spring green^=#00FF7F|steel blue^=#4682B4|tan^=#D2B48C|teal^=#008080|thistle^=#D8BFD8|tomato^=#FF6347|turquoise^=#40E0D0|violet^=#EE82EE|wheat^=#F5DEB3|white^=#FFFFFF|white smoke^=#F5F5F5|yellow^=#FFFF00|yellow green^=#9ACD32
  183.  
  184. H="_◊Link"
  185. ^!InsertHtml <A HREF="^?[Enter a URL]">^?[Enter a description for this link]</A>^&
  186.  
  187. H="_◊Link to Bookmark"
  188. ^!InsertHtml <A HREF="#^?[Link to Bookmark]">^&</A>
  189.  
  190. H="_◊Link with image"
  191. ^!InsertHtml <A HREF="^?[Enter a URL]"><IMG ^?[(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image file name] BORDER="0" ALT="^?[Image text description]"></A>^&
  192.  
  193. H="_◊MailTo"
  194. ^!InsertHtml <A HREF="mailto:^?[Enter email address]">^?[Enter link text]</A>^&
  195.  
  196. H="br"
  197. ^!InsertHtml <BR>^P^&
  198.  
  199. H="char"
  200. &^?[Special character=© Copyright^=copy|Æ Registered TradeMark^=reg|TM TradeMark^=trade|Non breaking space^=nbsp|"^=quot|&^=amp|<^=lt|>^=gt|¡^=Aacute|·^=aacute|¿^=Agrave|‡^=agrave|¬^=Acirc|‚^=acirc|ƒ^=Auml|‰^=auml|√^=Atilde|„^=atilde|≈^=Aring|Â^=aring|Δ^=Aelig|Ê^=aelig|«^=Ccedil|Á^=ccedil|–^=Eth|^=eth|…^=Eacute|È^=eacute|»^=Egrave|Ë^=egrave| ^=Ecirc|Í^=ecirc|À^=Euml|Î^=euml|Õ^=Iacute|Ì^=iacute|Ã^=Igrave|Ï^=igrave|Œ^=Icirc|Ó^=icirc|œ^=Iuml|Ô^=iuml|—^=Ntilde|Ò^=ntilde|”^=Oacute|Û^=oacute|“^=Ograve|Ú^=ograve|‘^=Ocirc|Ù^=ocirc|÷^=Ouml|ˆ^=ouml|’^=Otilde|ı^=otilde|ÿ^=Oslash|¯^=oslash|fl^=szlig|fi^=Thorn|˛^=thorn|⁄^=Uacute|˙^=uacute|Ÿ^=Ugrave|˘^=ugrave|€^=Ucirc|˚^=ucirc|‹^=Uuml|¸^=uuml|›^=Yacute|˝^=yacute|ˇ^=yuml];^&
  201.  
  202. H="color"
  203. ^?{Choose a color=^$StrReplace("alice blue^=#F0F8FF";"_alice blue^=#F0F8FF";"^$GetClipText("◊Color Codes")$";True;False)$}^&
  204.  
  205. H="comment"
  206. <!-- ^& -->
  207.  
  208. H="hr"
  209. ^!SetWizardLabel "Optional attributes for the HR tag"
  210. ^!InsertWizardHtml <HR ALIGN="^?{&Align (transitional)=center|left|right}" SIZE="^?{&Size (transitional)}" WIDTH="^?{&Width (transitional)}"^?{(T=C)&No shade (transitional)==True^= NOSHADE|False^=}>^P^&
  211.  
  212. H="lu"
  213. ^!InsertHtml Last updated on <^?[Format date==_Bold^=B|Italic^=I]>^$GetDate(mmmm dd, yyyy^)$</^?[Format date]>^p^&
  214.  
  215. H="_OnOpen"
  216. ;Check if this library has been opened before. If it has, skip the instructions below
  217. ^!If ^$GetValue(efoHtmlAR)$ = 1 Exit
  218. ;Save key value to NoteTab's INI file
  219. ^!SaveValue efoHtmlAR=1
  220. ;Show instructions contained in the "About this library" Clip
  221. ^!Clip "About this library"
  222.  
  223. H="quotes"
  224. “^&”